package com.shop.cereshop.app.dao.tim.transfer;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.cereshop.app.tencent.im.model.transfer.TransferOrder;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TransferOrderMapper extends BaseMapper<TransferOrder> {

    /**
     * 查询过期未领取的转账订单列表
     * @return 订单列表
     */
    List<TransferOrder> getExpiredTransferOrders();

    int deleteByPrimaryKey(Long orderId);

//    int insert(TransferOrder record);

    int insertSelective(TransferOrder record);

    TransferOrder selectByPrimaryKey(Long orderId);

    int updateByPrimaryKeySelective(TransferOrder record);

    int updateByPrimaryKey(TransferOrder record);
}